From: Po Lu Date: Wed, 2 Feb 2022 07:18:12 +0000 (+0800) Subject: * src/nsselect.m (ns_get_foreign_selection): Fix GCC warning. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~3022 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e7047b4aba0fa5f3a511cb0688158400f02b1485;p=emacs.git * src/nsselect.m (ns_get_foreign_selection): Fix GCC warning. --- diff --git a/src/nsselect.m b/src/nsselect.m index 13ca9b9c442..a7ef9df0e0e 100644 --- a/src/nsselect.m +++ b/src/nsselect.m @@ -250,7 +250,7 @@ ns_get_foreign_selection (Lisp_Object symbol, Lisp_Object target) NSString *type; NSEnumerator *e = [[pb types] objectEnumerator]; - while (type = [e nextObject]) + while ((type = [e nextObject])) { NSString *val = [typeLookup valueForKey:type]; if (val && ! [types containsObject:val])